package com.ymttest.common.order.userquery.model.vo;

import org.apache.xmlbeans.impl.xb.xsdschema.Public;

import com.ymttest.utils.DataUtil;


/**
 * 订单当前状态下的可操作信息. null表示不能进行操作
 * 
 * @author luoshiqian 2016/12/28 14:08
 */
public class OrderOperationInfo{

    /**
     * 操作类型 OrderOperationTypeEnum
     */
    private int type;

    /**
     * 操作实际可用
     */
    private boolean active;

    /**
     * /// 校期
     */
    private String interval;

    /**
     * 距校期满还有多久
     */
    private String rest;

    /**
     * 要告知用户的信息 OrderOperationNoticeEnum
     */
    private long notice;

    /**
     * 需要理由
     */
    private boolean needReason;

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public boolean isActive() {
        return active;
    }

    public void setActive(boolean active) {
        this.active = active;
    }

    public String getInterval() {
        return interval;
    }

    public void setInterval(String interval) {
        this.interval = interval;
    }

    public String getRest() {
        return rest;
    }

    public void setRest(String rest) {
        this.rest = rest;
    }

    public long getNotice() {
        return notice;
    }

    public void setNotice(long notice) {
        this.notice = notice;
    }

    public boolean isNeedReason() {
        return needReason;
    }

    public void setNeedReason(boolean needReason) {
        this.needReason = needReason;
    }
    
    public void verify(OrderOperationInfo that){
//    	DataUtil.verify(this.getType(), that.getType(),DataUtil.getObjectPropertyVerifyString(this, "type"));
//		DataUtil.verify(this.isActive(), that.isActive(),"验证 OrderOperationInfo.active");
//		DataUtil.verify(this.getInterval(), that.getInterval(),"验证 OrderOperationInfo.interval");
//		DataUtil.verify(this.getRest(), that.getRest(),"验证 OrderOperationInfo.rest");
//		DataUtil.verify(this.getNotice(), that.getNotice(),"验证 OrderOperationInfo.notice");
//		DataUtil.verify(this.isNeedReason(), that.isNeedReason(),"验证 OrderOperationInfo.needReason");
//    	DataUtil.verifyObject(this, that);
    }
}
